package xyz.jcat.dys.aweme.service.impl;

import org.springframework.data.mongodb.core.query.Update;
import org.springframework.stereotype.Service;
import xyz.jcat.dys.aweme.domain.document.AwemeCommentDocument;
import xyz.jcat.dys.aweme.service.IAwemeCommentService;
import xyz.jcat.mongo.NumberIdService;

@Service
public class AwemeCommentService extends NumberIdService<AwemeCommentDocument, Long> implements IAwemeCommentService {


    @Override
    public boolean updateDiggs(Long id, Long diggs) {
        return inc(id, AwemeCommentDocument.field_diggs, AwemeCommentDocument.class);
    }

    @Override
    public boolean updateReplies(Long id, Long replies) {
        return inc(id, AwemeCommentDocument.field_replies, AwemeCommentDocument.class);
    }
}
